<style>
label {
	width:120px!important;
}
</style>
<div id="box">
  <form action="<?php echo base_url(); ?>admin/restaurant/<?php if(isset($_GET['id'])) echo "update?id=".$_GET["id"];else echo "insert";?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Restaurant&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Name : </label>
      <input name="name" type="text" value="<?php echo $detail['name']; ?>"/>
      <br>
      <label>Promotion : </label>
      <?php 
										$fck = new FCKeditor('promotion');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['promotion'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br>
      <label>Description : </label>
      <?php 
										$fck = new FCKeditor('description');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['description'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br>
      <label>Address : </label>
      <input name="address" type="text" value="<?php echo $detail['address']; ?>"/>
      <br>
      <label>Avatar : </label>
      <input name="fuavatar" type="file" tabindex="2"/>
      <img src="<?php echo base_url().'uploads/restaurant/'.$detail["avatar"];?>" width="150"/>
      <br>
      <label>Lat : </label>
      <input name="lat" type="text" value="<?php echo $detail["lat"] ?>"/>
      <br />
      <label>Long : </label>
      <input name="long" type="text" value="<?php echo $detail["long"] ?>"/>
      <br />
      <label>Overview : </label>
      <?php 
										$fck = new FCKeditor('overview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['overview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Guest's review : </label>
      <?php 
										$fck = new FCKeditor('guestreview');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['guestreview'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Provide : </label>
      <select name="provide">
        <option value="0">Choose Provide</option>
        <option value="Bagan" <?php if($detail['provide']=="Bagan") echo "selected"; ?>>Bagan</option>
        <option value="Inle" <?php if($detail['provide']=="Inle") echo "selected"; ?>>Inle</option>
        <option value="Mandalay" <?php if($detail['provide']=="Mandalay") echo "selected"; ?>>Mandalay</option>
        <option value="Yangon" <?php if($detail['provide']=="Yangon") echo "selected"; ?>>Yangon</option>
      </select>
      <br /><label>Old Price : </label>
      <input name="oldprice" type="text" value="<?php echo $detail['oldprice']; ?>"/>
      
      <br />
      <label>Price for Breakfast: </label>
      <input name="priceforbreakfast" type="text" value="<?php echo $detail['priceforbreakfast']; ?>"/>
      <br />
      <label>Price for Lunch: </label>
      <input name="priceforlunch" type="text" value="<?php echo $detail['priceforlunch']; ?>"/>
      <br />
      <label>Price for Snack: </label>
      <input name="priceforsnack" type="text" value="<?php echo $detail['priceforsnack']; ?>"/>
      <br />
      <label>Price for Dinner: </label>
      <input name="pricefordinner" type="text" value="<?php echo $detail['pricefordinner']; ?>"/>
      <br />
      <label>Menu : </label>
      <br />
      <?php 
										$fck = new FCKeditor('menu');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['menu'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <!--<label>Amenity : </label>
      <br />
      <?php 
										//$fck = new FCKeditor('amenity');
//										$fck->BasePath = sBASEPATH;
//								        $fck->Value  = $detail['amenity'];					
//										$fck->Width  = '100%';
//										$fck->Height = 400;
//										$fck->Create();
									   ?>
      <br />-->
      <label>Near By : </label>
      <textarea name="nearby"><?php echo $detail['nearby'] ?></textarea>
      <br />
      <label>Style : </label>
      <select name="styleofrestaurant">
        <option value="0">Choose Style</option>
        <option value="Fine dinner" <?php if($detail['styleofrestaurant']=="Fine dinner") echo "selected"; ?>>Fine dinner</option>
        <option value="Family" <?php if($detail['styleofrestaurant']=="Family") echo "selected"; ?>>Family</option>
        <option value="Couple" <?php if($detail['styleofrestaurant']=="Couple") echo "selected"; ?>>Couple</option>
        <option value="Group" <?php if($detail['styleofrestaurant']=="Group") echo "selected"; ?>>Group</option>
      </select>
      <br>
      <label>Capacity : </label>
      <input name="capacity" type="text" required value="<?php echo $detail['capacity'] ?>"/>
      <br>
      <label>Cuisine Type : </label>
      <select name="cuisinetype">
        <option value="0">Choose Cuisine Type</option>
        <option value="Myanmar" <?php if($detail['cuisinetype']=="Myanmar") echo "selected"; ?>>Myanmar</option>
        <option value="Western" <?php if($detail['cuisinetype']=="Western") echo "selected"; ?>>Western</option>
        <option value="Chinese" <?php if($detail['cuisinetype']=="Chinese") echo "selected"; ?>>Chinese</option>
        <option value="Asian" <?php if($detail['cuisinetype']=="Asian") echo "selected"; ?>>Asian</option>
        <option value="Thai" <?php if($detail['cuisinetype']=="Thai") echo "selected"; ?>>Thai</option>
      </select>
      <br>
      <label>Meal : </label>
      <select name="mealofrestaurant">
        <option value="0">Choose Meal</option>
        <option value="Breakfast" <?php if($detail['mealofrestaurant']=="Breakfast") echo "selected"; ?>>Breakfast</option>
        <option value="Lunch" <?php if($detail['mealofrestaurant']=="Lunch") echo "selected"; ?>>Lunch</option>
        <option value="Snack" <?php if($detail['mealofrestaurant']=="Snack") echo "selected"; ?>>Snack</option>
        <option value="Dinner" <?php if($detail['mealofrestaurant']=="Dinner") echo "selected"; ?>>Dinner</option>
      </select>
      <br>
      <label>Dining Option : </label>
      <input name="diningoption" type="text" required value="<?php echo $detail['diningoption'] ?>"/>
      <br>
      <label>Beverage Option : </label>
      <input name="beverageoption" type="text" required value="<?php echo $detail['beverageoption'] ?>"/>
      <br>
      <label>Speciality : </label>
      <br />
      <?php 
										$fck = new FCKeditor('speciality');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['speciality'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Feature : </label>
      <br />
      <?php 
										$fck = new FCKeditor('restauranfeature');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['restauranfeature'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Policy : </label>
      <br />
      <?php 
										$fck = new FCKeditor('policy');
										$fck->BasePath = sBASEPATH;
								        $fck->Value  = $detail['policy'];					
										$fck->Width  = '100%';
										$fck->Height = 400;
										$fck->Create();
									   ?>
      <br />
      <label>Best Deal : </label>
      <select name="bestdeal">
        <option value="0">Choose Best Deal</option>
        <?php for($i=1;$i<30;$i++){?>
        <option value="<?php echo $i ?>" <?php if($detail['bestdeal']==$i) echo "selected"; ?>><?php echo $i ?></option>
        <?php }?>
      </select>
      <br />
      <label>Recommendations : </label>
      <select name="recommendations">
        <option value="0">Choose Recommendations</option>
        <?php for($i=1;$i<30;$i++){?>
        <option value="<?php echo $i ?>" <?php if($detail['recommendations']==$i) echo "selected"; ?>><?php echo $i ?></option>
        <?php }?>
      </select>
      <br />
      <label>Status : </label>
      <select name="status">
        <option value="0">Choose Status</option>
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Highlights</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Normal</option>
        <option value="3" <?php if($detail['status']==3) echo "selected"; ?>>Hidden</option>
      </select>
      <br />
      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset"/>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit"/>
      </div>
    </fieldset>
  </form>
</div>
